﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Cube : MonoBehaviour
{
    private void Start()
    {
    }

    public Color[] color = { Color.green, Color.blue, Color.yellow };
    public GameObject cube;

    private void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            GetComponent<MeshRenderer>().material.color = Color.red;
        }
    }
}